package com.cdsxt.po;

import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.cdsxt.base.BaseEntity;

@Entity
@Table(name = "litemall_goods")
/**
 * @author 成都尚学堂 & mr zeng
 * 客服热线：028-65176856
 * 网址： www.cd-sxt.com
 * 
 * 商品信息模块
 */
public class LitemallGoodsPo extends BaseEntity {

	
	 //专柜价格
	private Integer counterPrice;
	 //商城零售价格
	private Integer retailPrice;
	 //商品名称
	private String name;
	 //商品所属类目ID
	private Integer categoryId;
	 //商品的库存数量
	private Integer number;
	 //商品页面商品图片
	private String picUrl;
	 //【前2张为轮播图，所有的图为图文详情显示】商品图片列表，采用JSON数组格式
	private String gallery;
	 //商品详细介绍
	private String detail;
	 //商品关键字，采用逗号间隔
	private String keywords;
	 //商品简介
	private String brief;
	 //是否上架
	private Byte isOnSale;
	 //
	private Short sortOrder;
	 //
	private Integer brandId;
	 //商品分享朋友圈图片
	private String shareUrl;
	 //是否新品首发，如果设置则可以在新品首发页面展示
	private Byte isNew;
	 //商品编号
	private String goodsSn;
	 //是否人气推荐，如果设置则可以在人气推荐页面展示
	private Byte isHot;
	 //商品单位，例如件、盒
	private String unit;
	 //逻辑删除
	private Byte deleted;
	
	 
	public LitemallGoodsPo() {
	}
	
	public void setCounterPrice(Integer  counterPrice){
	 		this.counterPrice=counterPrice;
	}
	public void setRetailPrice(Integer  retailPrice){
	 		this.retailPrice=retailPrice;
	}
	public void setName(String  name){
	 		this.name=name;
	}
	public void setCategoryId(Integer  categoryId){
	 		this.categoryId=categoryId;
	}
	public void setNumber(Integer  number){
	 		this.number=number;
	}
	public void setPicUrl(String  picUrl){
	 		this.picUrl=picUrl;
	}
	public void setGallery(String  gallery){
	 		this.gallery=gallery;
	}
	public void setDetail(String  detail){
	 		this.detail=detail;
	}
	public void setKeywords(String  keywords){
	 		this.keywords=keywords;
	}
	public void setBrief(String  brief){
	 		this.brief=brief;
	}
	public void setIsOnSale(Byte  isOnSale){
	 		this.isOnSale=isOnSale;
	}
	public void setSortOrder(Short  sortOrder){
	 		this.sortOrder=sortOrder;
	}
	public void setBrandId(Integer  brandId){
	 		this.brandId=brandId;
	}
	public void setShareUrl(String  shareUrl){
	 		this.shareUrl=shareUrl;
	}
	public void setIsNew(Byte  isNew){
	 		this.isNew=isNew;
	}
	public void setGoodsSn(String  goodsSn){
	 		this.goodsSn=goodsSn;
	}
	public void setIsHot(Byte  isHot){
	 		this.isHot=isHot;
	}
	public void setUnit(String  unit){
	 		this.unit=unit;
	}
	public void setDeleted(Byte  deleted){
	 		this.deleted=deleted;
	}
	 
	 
	public Integer getCounterPrice(){
	 		return this.counterPrice;
	}
	public Integer getRetailPrice(){
	 		return this.retailPrice;
	}
	public String getName(){
	 		return this.name;
	}
	public Integer getCategoryId(){
	 		return this.categoryId;
	}
	public Integer getNumber(){
	 		return this.number;
	}
	public String getPicUrl(){
	 		return this.picUrl;
	}
	public String getGallery(){
	 		return this.gallery;
	}
	public String getDetail(){
	 		return this.detail;
	}
	public String getKeywords(){
	 		return this.keywords;
	}
	public String getBrief(){
	 		return this.brief;
	}
	public Byte getIsOnSale(){
	 		return this.isOnSale;
	}
	public Short getSortOrder(){
	 		return this.sortOrder;
	}
	public Integer getBrandId(){
	 		return this.brandId;
	}
	public String getShareUrl(){
	 		return this.shareUrl;
	}
	public Byte getIsNew(){
	 		return this.isNew;
	}
	public String getGoodsSn(){
	 		return this.goodsSn;
	}
	public Byte getIsHot(){
	 		return this.isHot;
	}
	public String getUnit(){
	 		return this.unit;
	}
	public Byte getDeleted(){
	 		return this.deleted;
	}
	
	
	public String toString() {

		StringBuilder sb=new StringBuilder("\nLitemallGoodsPo【数据信息】：");
		sb.append("父类的信息："+super.toString());
		sb.append("自己类的信息：");
		sb.append("counterPrice");
		sb.append("=");
		sb.append(this.counterPrice);
		sb.append(", ");
		sb.append("retailPrice");
		sb.append("=");
		sb.append(this.retailPrice);
		sb.append(", ");
		sb.append("name");
		sb.append("=");
		sb.append(this.name);
		sb.append(", ");
		sb.append("categoryId");
		sb.append("=");
		sb.append(this.categoryId);
		sb.append(", ");
		sb.append("number");
		sb.append("=");
		sb.append(this.number);
		sb.append(", ");
		sb.append("picUrl");
		sb.append("=");
		sb.append(this.picUrl);
		sb.append(", ");
		sb.append("gallery");
		sb.append("=");
		sb.append(this.gallery);
		sb.append(", ");
		sb.append("detail");
		sb.append("=");
		sb.append(this.detail);
		sb.append(", ");
		sb.append("keywords");
		sb.append("=");
		sb.append(this.keywords);
		sb.append(", ");
		sb.append("brief");
		sb.append("=");
		sb.append(this.brief);
		sb.append(", ");
		sb.append("isOnSale");
		sb.append("=");
		sb.append(this.isOnSale);
		sb.append(", ");
		sb.append("sortOrder");
		sb.append("=");
		sb.append(this.sortOrder);
		sb.append(", ");
		sb.append("brandId");
		sb.append("=");
		sb.append(this.brandId);
		sb.append(", ");
		sb.append("shareUrl");
		sb.append("=");
		sb.append(this.shareUrl);
		sb.append(", ");
		sb.append("isNew");
		sb.append("=");
		sb.append(this.isNew);
		sb.append(", ");
		sb.append("goodsSn");
		sb.append("=");
		sb.append(this.goodsSn);
		sb.append(", ");
		sb.append("isHot");
		sb.append("=");
		sb.append(this.isHot);
		sb.append(", ");
		sb.append("unit");
		sb.append("=");
		sb.append(this.unit);
		sb.append(", ");
		sb.append("deleted");
		sb.append("=");
		sb.append(this.deleted);
		sb.append(", ");
		
		return sb.toString();
	}

}
